package com.dbxt.dao;

import org.apache.ibatis.annotations.Param;

import com.dbxt.entity.ClerkRecord;

public interface ClerkRecordMapper {
    int deleteByPrimaryKey(Integer crid);

    int insert(ClerkRecord record);

    int insertSelective(ClerkRecord record);
    
    int insertClerkRecord(@Param("record")ClerkRecord record ,@Param("sid")Integer sid);//添加记录

    ClerkRecord selectByPrimaryKey(@Param("cid")Integer cid, @Param("sid")Integer sid);

    int updateByPrimaryKeySelective(ClerkRecord record);

    int updateByPrimaryKey(ClerkRecord record);
    
    
    ClerkRecord selectContext(Integer rid);
    ClerkRecord selectCrid(Integer crid);
    
    boolean updateCid(ClerkRecord clerkRecord);
    boolean updateContext(ClerkRecord clerkRecord);
    
    boolean insertContext(ClerkRecord clerkRecord);
    
}